﻿#region Header
// ------------------------ Licence / Copyright ------------------------
// 
// ScrumTable for Scrum Meeting Support
// Copyright © HSR - Hochschule für Technik Rapperswil
// All Rights Reserved
// 
// Author:
//  Michael Gfeller Silvan Gehrig Patrick Boos
// 
// ---------------------------------------------------------------------
#endregion

using ScrumTable.Common.FileSystem;

namespace ScrumTable.Config.ElementManagement
{

    #region Usings
    #endregion


    /// <summary>
    /// 
    /// </summary>
    public static class ElementManagerFactory
    {
        #region Declarations
        //--------------------------------------------------------------------
        // Declarations
        //--------------------------------------------------------------------

        #endregion

        #region Properties
        //--------------------------------------------------------------------
        // Properties
        //--------------------------------------------------------------------

        #endregion

        #region Constructors / Destructor

        //--------------------------------------------------------------------
        // Constructors / Destructor
        //--------------------------------------------------------------------
 
        #endregion

        #region Methods
        //--------------------------------------------------------------------
        // Methods
        //--------------------------------------------------------------------


        /// <summary>
        /// Creates the config manager.
        /// </summary>
        /// <returns></returns>
        public static ElementManager CreateConfigManager()
        {
            return CreateConfigManager(DataFolderUtil.GetConfigFile("ElementConfig.xml"), DataFolderUtil.GetConfigUserPath("ElementConfig.xml"));
        }


        /// <summary>
        /// Creates the config manager.
        /// </summary>
        /// <param name="path">The path to the saved file.</param>
        /// <param name="pathUser"></param>
        /// <returns></returns>
        public static ElementManager CreateConfigManager(string path, string pathUser)
        {
            return new ConfigSerializer<ElementManager>(path, pathUser).Deserialize();
        }

        #endregion

        #region Events
        //--------------------------------------------------------------------
        // Events
        //--------------------------------------------------------------------

        #endregion
    }
}
